<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <script>
        class Person {
            constructor() {}; // 构造函数，调用new 自动执行
            showname() {
                return '这是showname方法'
            }
        };

        Person.aaa = function() {
            return 'aaa000'
        }
        let p1 = new Person();
        console.log(p1.showname());
        console.log(Person.aaa()); //
    </script>
</body>

</html>